Release 10.1A: OpenEdge Getting Started:
Database Essentials
Calculating database storage requirements
The OpenEdge database engine stores all database fields and indexes in variable-length format and does not store trailing blanks in character fields or leading zeros in numeric fields. The benefits of this variable-length storage technique are:
Table 4–1 lists the formulas you use to calculate the field storage values (in bytes) for different data types.
For example, you calculate the estimated database size for a database with a single customer table as follows.
The table has three fields:
The table is indexed on just one field (Name) and you would expect to have about 500,000 records in the customer table. Table 4–2 lists formulas (and examples) for estimating the size of your database.
These formulas are conservative since they often result in a large estimate of your database size. However, you also must allow for temporary disk space for each database user for the following purposes:
Database-related size criteria
When planning the size of your database, use the formulas listed in Table 4–3 to calculate the approximate amount of disk space (in bytes) required for a database. See OpenEdge Data Management: Database Administration for limits on any of these elements.
Table 4–3: Formulas for calculating database size Size Formula Database sizeschema size+data table size+index size. Schema size Typically, between 1 and 100MB1. Data table size Sum of individual table sizes. Individual table sizenumber of recordsxfield storagex 1.5. Index size Sum of individual index sizes. Individual index sizenumber of records in the table being indexedx(7 + number of fields index +field storage)x2.
- 1To determine the schema size, load the schema into an empty database and check the size of your database—this is the size of your schema.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |